﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UI.Forms.ProReport
{
    public partial class InProCollect : Form
    {
        public InProCollect()
        {
            InitializeComponent();
        }

        private void InProCollect_Load(object sender, EventArgs e)
        {
            BindingList<SVC.client.View_Emp_lite> emps = my.bw.View_Emp_lite_List("", my.ACID);
            dateselect1.lue_date.Properties.DataSource = my.dts;
            dateselect1.lue_date.EditValue = 1;
            bind();
        }
        private void bind()
        {
            DateTime? sd = null;
            DateTime? ed = null;
            if (dateselect1.de_sd.EditValue != null)
            { sd = dateselect1.de_sd.DateTime; }
            if (dateselect1.de_ed.EditValue != null)
            { ed = dateselect1.de_ed.DateTime; }

            gridControl1.DataSource = my.bw.Get_ProductIN_GoodCollect(sd, ed, my.ACID);
        }
        private void btn_search_Click(object sender, EventArgs e)
        {
            bind();
        }
    }
}
